CentOS 6
Sponsored Link

OpenStack Icehouse : Pre-requirements
2014/06/23
 
This is the exmaple of Cloud Computiong by OpenStack.
On this example, Install and configure Keystone, Glance, Nova, Horizon on a server as All-in-One. For other componets, refer to the precondition of the section.
Install some services which some components of OpenStack needs forst on here.
[1]
[2]
Install KVM HyperVisor like here.
It's unnecessarry to set Bridge networking manually, though. ( OpenStack system sets Bridge networking )
[3] Add the repository of Openstack Icehouse and Update the system.
[root@dlp ~]#
yum -y install http://repos.fedorapeople.org/repos/openstack/openstack-icehouse/rdo-release-icehouse.rpm

[root@dlp ~]#
yum -y update
[root@dlp ~]#
sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/rdo-release.repo

[4] Install MariaDB Server for backend database.
# install from RDO which is added in section [3]

[root@dlp ~]#
yum --enablerepo=openstack-icehouse -y install mariadb-galera-server
[root@dlp ~]#
/etc/rc.d/init.d/mysqld start

[root@dlp ~]#
chkconfig mysqld on
[root@dlp ~]#
mysql -u root
# connect to MariaDB

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.5.36-MariaDB-wsrep MariaDB Server, wsrep_25.9.r3961

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

# show user info

mysql>
select user,host,password from mysql.user;

+------+------------------+----------+
| user | host             | password |
+------+------------------+----------+
| root | localhost        |          |
| root | dlp.srv.world |          |
| root | 127.0.0.1        |          |
| root | ::1              |          |
|      | localhost        |          |
|      | dlp.srv.world |          |
+------+------------------+----------+
6 rows in set (0.00 sec)

# set root password

mysql>
set password for root@localhost=password('password');

Query OK, 0 rows affected (0.00 sec)
# set root password

mysql>
set password for root@'127.0.0.1'=password('password');

Query OK, 0 rows affected (0.00 sec)
# set root password

mysql>
set password for root@'dlp.srv.world'=password('password');

Query OK, 0 rows affected (0.00 sec)
# delete anonymous user

mysql>
delete from mysql.user where user='';

Query OK, 2 rows affected (0.00 sec)
# delete IPV6 user if not need

mysql>
delete from mysql.user where user='root' and host='::1';

Query OK, 2 rows affected (0.00 sec)
mysql>
select user,host,password from mysql.user;

+------+------------------+-------------------------------------------+
| user | host             | password                                  |
+------+------------------+-------------------------------------------+
| root | localhost        | *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 |
| root | dlp.srv.world | *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 |
| root | 127.0.0.1        | *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 |
+------+------------------+-------------------------------------------+
3 rows in set (0.00 sec)

mysql>
exit

Bye
[5] Install RabbitMQ, Memcached, Avahi.
# install from EPEL

[root@dlp ~]#
yum --enablerepo=epel -y install rabbitmq-server memcached avahi
[root@dlp ~]#
/etc/rc.d/init.d/rabbitmq-server start

Starting rabbitmq-server: SUCCESS
rabbitmq-server.
[root@dlp ~]#
chkconfig rabbitmq-server on
# change guest's password

[root@dlp ~]#
rabbitmqctl change_password guest password

Changing password for user "guest" ...
...done.
[root@dlp ~]#
for service in memcached avahi-daemon; do
/etc/rc.d/init.d/$service start
chkconfig $service on
done

Starting memcached:                   [  OK  ]
Starting Avahi daemon...              [  OK  ]
 
Tweet